<template>
	<s-layout title="查看视频" :bgStyle="{
		color:'#F6F6F6'
	}">
		<video :style="{
		height: `calc(100vh - ${sheep.$platform.device.statusBarHeight + 44}px)`, 
		width: '100vw'
	}" controls :autoplay="true" :src="url" :enable-progress-gesture="false" :show-fullscreen-btn="false"
			show-center-play-btn :poster="url+'?ci-process=snapshot&time=0.01'"></video>
	</s-layout>
</template>

<script setup>
	import {
		ref,
		computed
	} from 'vue';
	import {
		onLoad,
		onShow,
		onPageScroll,
		onPullDownRefresh
	} from '@dcloudio/uni-app';
	import sheep from '@/sheep';

	const url = ref('')

	onLoad((opt) => {
		if (opt.url) {
			url.value = opt.url
		}
	})
</script>

<style lang="scss">

</style>